package com.xaicode.auth.mapper;

import com.xaicode.auth.base.BaseMapper;
import com.xaicode.auth.constant.DatasourceName;
import com.xaicode.auth.entity.SysMenu;
import com.baomidou.dynamic.datasource.annotation.DS;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
@DS(DatasourceName.CCM)
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    List<SysMenu> selectMenus(@Param("userId") String userId, @Param("status") Integer status);

    List<SysMenu> getMenuPermissionByUserId(@Param("userId") String userId, @Param("status") Integer status);

    List<SysMenu> getMenusByUserId(@Param("userId") String userId, @Param("status") Integer status, @Param("menuType") Integer menuType);

}
